﻿namespace BestEasyCMS.Service.Cache
{
    public class CacheHelper
    {
        /// <summary>
        /// 是否开启缓存
        /// </summary>
        public static bool IsStart { get; private set; }

        /// <summary>
        /// 启动缓存
        /// </summary>
        public static void Start()
        {
            IsStart = true;
        }
        /// <summary>
        /// 关闭缓存
        /// </summary>
        public static void Stop()
        {
            IsStart = false;
        }
    }
}
